package com.czc.cca.ddl;

import org.zoomdev.zoom.dao.ddl.*;
import org.zoomdev.zoom.dao.driver.mysql.MysqlDriver;

@_DDL_Table(name = "sys_ensure", simpleName = "", engine = MysqlDriver.InnoDB, comment = "ensure")
public class _DDL_SysEnsure {

    @_DDL_Primary()
    @_DDL_Column(name = "id", type = SqlType.INT_UNSIGNED, nullable = false, autoIncrement = true, comment = "id")
    private Long id;

    @_DDL_Column(name = "type", type = SqlType.INT_UNSIGNED, comment = "类型")
    private Long type;

    @_DDL_Column(name = "data", type = SqlType.MEDIUMTEXT, comment = "调用数据")
    private String data;

    @_DDL_Index(name = "IDX_sys_ensure_state")
    @_DDL_Column(name = "state", type = SqlType.TINYINT_UNSIGNED, comment = "状态码 0 正常 1 失败 2 成功 3 已完成")
    private Integer state;

    @_DDL_Column(name = "cr_time", type = SqlType.TIMESTAMP, defaultFunction = MysqlDriver.CURRENT_TIMESTAMP, comment = "创建时间")
    private java.sql.Timestamp crTime;

    @_DDL_Column(name = "retry", type = SqlType.SMALLINT_UNSIGNED, comment = "重试次数")
    private Integer retry;

    @_DDL_Column(name = "exception", type = SqlType.MEDIUMTEXT, comment = "错误原因")
    private String exception;

}
